<?php
/*********************/
/*                   */
/*  商品缺货登记 模块  */
/*   BY voiet        */
/*   2009-9-26       */
/*                   */
/*********************/


class cmd_goodsnotify extends mdl_goodsnotify
{

	
	function modifier_gstatus( &$rows )
	{
		foreach ( $rows as $k => $v )
		{
			$date = $this->db->selectrow( "SELECT store,freez FROM sdb_products  WHERE product_id = ".$v."" );
			if ( ($date['store'] - $date['freez']) <= 0 )
			{
				$rows[$k] = "无货";
			}
			else
			{
				$rows[$k] = "有货";
			}
		}
	}

	
}

?>